import React, { Component } from 'react'
import Pager from './Pager'
export default class PagerTest extends Component {

  state =  {
    current:1,
    pageSize:10,
    pannelNumber:5,
    total:100
  }
 onPageChange = (target)=>{
    console.log('接收',target)
   this.setState({
    current: target
   })
  }
 
  render() {
    return (
      <Pager onClick={()=>{
        console.log('点击')
      }} 
      current={this.state.current} 
      pageSize={this.state.pageSize} 
      total={this.state.total}
      pannelNumber={this.state.pannelNumber}
      onPageChange={
        this.onPageChange
      }
      />
    )
  }
}
